<template>
	<view>
		<an-nav-bar :title="title"></an-nav-bar>

		<view style="padding: 20rpx;">
			<rich-text v-html="content"></rich-text>
		</view>

	</view>
</template>

<script>
	import {
		singleRequest,
	} from "@/api/single"

	export default {
		data() {
			return {
				title: '',
				content: '',
			}
		},
		onLoad(options) {
			if (options.id) {
				singleRequest({
					id: options.id,
				}).then(res => {
					if (!res || !res.data) {
						return
					}

					this.title = res.data.remark
					this.content = res.data.protocolContent
				})
			}
		},
		onShow() {

		},
		methods: {

		},
	}
</script>
